package jp.co.sn.mml.pojo.tmkscmt;


public class TmkscmtId implements java.io.Serializable { 

	//検査コメントコード
	private String ksCmtCd;
	//検査群
	private String ksKbn;

	/** default constructor */
	public TmkscmtId(){

	}

	/** full constructor */
	public TmkscmtId(String ksCmtCd,String ksKbn){
		this.ksCmtCd = ksCmtCd;
		this.ksKbn = ksKbn;
	}

	//Property accessors
	public String getKsCmtCd(){
		return this.ksCmtCd;
	}

	public void setKsCmtCd(String ksCmtCd){
		this.ksCmtCd=ksCmtCd;
	}

	public String getKsKbn(){
		return this.ksKbn;
	}

	public void setKsKbn(String ksKbn){
		this.ksKbn=ksKbn;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TmkscmtId))
			return false;

		TmkscmtId castOther = (TmkscmtId) other;

		return ((this.getKsCmtCd() ==  castOther.getKsCmtCd())
				||(this.getKsCmtCd()!=null && castOther.getKsCmtCd() !=null 
					&& castOther.getKsCmtCd() !=null 
					&& this.getKsCmtCd().equals(castOther.getKsCmtCd())))
			&& ((this.getKsKbn() ==  castOther.getKsKbn())
				||(this.getKsKbn()!=null && castOther.getKsKbn() !=null 
					&& castOther.getKsKbn() !=null 
					&& this.getKsKbn().equals(castOther.getKsKbn())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getKsCmtCd() == null ? 0 : this.getKsCmtCd().hashCode());
		result = 37 * result
				+ (getKsKbn() == null ? 0 : this.getKsKbn().hashCode());
		return result;
	}

}